<script>

    $("#form_grupo").validate({
            
        submitHandler: function(form) {
            $(form).ajaxSubmit({
                target: "#content",
                beforeSubmit:function(){
                    $(".submit_button").hide();
                            
                }
                    
            }
       
        );
                
                
        }
           
    });
</script>
<?php
echo $this->Form->create('Group',array('id'=>'form_grupo'));
echo $this->Form->input("Group.name");
?>
<?php echo $this->Form->end(array('label' => 'Guardar Predio', 'class' => 'submit_button')); ?>

